import axios from "axios";
axios.defaults.baseURL='/api'
axios.interceptors.request.use(
    config => {
      // do something before request is sent
//    config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
      return config
    },
    error => {
      console.log(error) // for debug
      return Promise.reject(error)
    }
  )
export default axios